package nc.vo.med.mcm.splx;

import nc.vo.pub.ValidationException;
import nc.vo.trade.pub.HYBillVO;

public class MyBillVO extends HYBillVO {

	@Override
	public SplclrdHVO getParentVO() {
		
		return (SplclrdHVO)super.getParentVO();
	}
	
	@Override
	public SplclrdBVO[] getChildrenVO() {
		
		return (SplclrdBVO[])super.getChildrenVO();
	}
	
	public void validate() throws ValidationException {
		SplclrdHVO headVO = getParentVO();
		SplclrdBVO[] bodyVO = getChildrenVO();
		if(headVO!=null){
			headVO.validate();
		}
		if(bodyVO!=null && bodyVO.length>0){
			for(int i=0;i<bodyVO.length;i++){
				bodyVO[i].validate();
			}
		}
	}
	
}
